package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Shop implements Serializable {
    private String shid;

    private String shname;

    private String shaddress;

    private Date sejointime;

    private String sepwd;

    private String sesalt;

    private static final long serialVersionUID = 1L;

    public String getShid() {
        return shid;
    }

    public void setShid(String shid) {
        this.shid = shid;
    }

    public String getShname() {
        return shname;
    }

    public void setShname(String shname) {
        this.shname = shname;
    }

    public String getShaddress() {
        return shaddress;
    }

    public void setShaddress(String shaddress) {
        this.shaddress = shaddress;
    }

    public Date getSejointime() {
        return sejointime;
    }

    public void setSejointime(Date sejointime) {
        this.sejointime = sejointime;
    }

    public String getSepwd() {
        return sepwd;
    }

    public void setSepwd(String sepwd) {
        this.sepwd = sepwd;
    }

    public String getSesalt() {
        return sesalt;
    }

    public void setSesalt(String sesalt) {
        this.sesalt = sesalt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Shop other = (Shop) that;
        return (this.getShid() == null ? other.getShid() == null : this.getShid().equals(other.getShid()))
            && (this.getShname() == null ? other.getShname() == null : this.getShname().equals(other.getShname()))
            && (this.getShaddress() == null ? other.getShaddress() == null : this.getShaddress().equals(other.getShaddress()))
            && (this.getSejointime() == null ? other.getSejointime() == null : this.getSejointime().equals(other.getSejointime()))
            && (this.getSepwd() == null ? other.getSepwd() == null : this.getSepwd().equals(other.getSepwd()))
            && (this.getSesalt() == null ? other.getSesalt() == null : this.getSesalt().equals(other.getSesalt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getShid() == null) ? 0 : getShid().hashCode());
        result = prime * result + ((getShname() == null) ? 0 : getShname().hashCode());
        result = prime * result + ((getShaddress() == null) ? 0 : getShaddress().hashCode());
        result = prime * result + ((getSejointime() == null) ? 0 : getSejointime().hashCode());
        result = prime * result + ((getSepwd() == null) ? 0 : getSepwd().hashCode());
        result = prime * result + ((getSesalt() == null) ? 0 : getSesalt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", shid=").append(shid);
        sb.append(", shname=").append(shname);
        sb.append(", shaddress=").append(shaddress);
        sb.append(", sejointime=").append(sejointime);
        sb.append(", sepwd=").append(sepwd);
        sb.append(", sesalt=").append(sesalt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}